<mat-form-field class="example-user-input">
  <input matInput placeholder="Tooltip message" [formControl]="message">
</mat-form-field>

<button mat-raised-button
        [matTooltip]="message.value"
        aria-label="Button that displays a tooltip with a custom message">
  Action
</button>
